package org.example.factory.support;

import org.example.exception.BeansException;
import org.example.factory.config.BeanDefinition;
import java.lang.reflect.Constructor;

/**
 * @Author: luyg
 * @Date: 2024/09/06/9:33
 * @Description: 填充bean属性的方法
 */
public interface InstantiationStrategy {

    Object instantiate(BeanDefinition beanDefinition, String beanName, Constructor constructor,Object[] args) throws BeansException;
}
